package com.tuanzi.loan.vo.request.family;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author Ray
 * 2017/10/16
 */
@Data
public class ProductInfoSaveRequest {


    private Long productInfoId;

    private List<String> identity;

    private List<String> loanType;

    private List<String> credit;

    private List<String> loanNecessaryData;

    private List<String> tag;

    private List<String> advantage;

    @NotBlank
    private String name;

    private String summary;

    @NotNull
    private Integer approvalType;

    @NotNull
    private Integer promotionType;

    private String businessLicense;

    private Long modelId;

    private String url;

    private String logo;

    private Integer minLimit;

    private Integer maxLimit;

    private Integer minTerm;

    private Integer maxTerm;

    private String rateType;

    private String loanSpeed;

    @Min(18)
    private Integer minAge;

    @Range(min = 18, max = 100)
    private Integer maxAge;

    private Integer defaultAmount;

    private Integer defaultTime;

    private Integer phoneOnlineTime;

    @Range(min = 100, max = 1000)
    private Integer sesameCredit;

    private Integer contacts;

    private Boolean needCreditCard;

    private Integer initCount;

    private String lendDate;

    private String rate;

    private String loanLimit;

    private Integer position;

    private Integer successCount;

    private String heat;

    private String remark;

    private Integer api;

    private Integer unionType;

    private Integer infoType;

    private String apiModelId;

    private String marketTag;

    private String passRate;

    private Integer loginType;

}
